<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:62:"/var/www/fish/application/crm/view/serviceorder/editOrder.html";i:1514449286;}*/ ?>
<!DOCTYPE html>
<html>
    
    <head>
        <meta charset="UTF-8">
		<title>小鱼ADMIN</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="stylesheet" href="/public/static/css/font.css">
		<link rel="stylesheet" href="/public/static/css/bgadmin.css">
		<script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
		<script type="text/javascript" src="/public/static/js/jquery.form.js"></script>
    </head>
    
    <body>
        <div class="bg-body">
            <form  action="#" method="post" id="mainForm" class="layui-form">
                <div class="layui-form-item">
                    <div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>收货人：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="consignee_id" name="consignee" required="" lay-verify="required"
							autocomplete="off" value="<?php echo $arrData['consignee']; ?>" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>下单时间：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="createtime_id" name="createtime" required="" lay-verify="required"
							autocomplete="off" value="<?php echo $arrData['createtime']; ?>" class="layui-input">
						</div>
					</div>
					<?php if(($username == 'admin') OR ($priv['display_phone'] == 'Y')): ?>
					<div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>收货手机：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="phone_id" name="phone" required="" lay-verify="required"
							autocomplete="off" value="<?php echo $arrData['phone']; ?>" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>收货电话：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="telephone_id" name="telephone" required="" lay-verify="required"
							autocomplete="off" value="<?php echo $arrData['telephone']; ?>" class="layui-input">
						</div>
					</div>
					<?php endif; ?>
					<div class="layui-form-item layui-form-text">
						<label for="desc" class="layui-form-label">
							收货地址：
						</label>
						<div class="layui-input-block">
							<input type="text" name="delivery_address" id="delivery_address_id" lay-verify="" autocomplete="off" placeholder="请输入收货地址" value="<?php echo $arrData['delivery_address']; ?>" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label"></label>
						<a class="layui-btn layui-btn-warm" id="" lay-filter=""><i class="iconfont1">&#xe6f1; </i>拨号1</a>
						<a class="layui-btn layui-btn-warm" id="" lay-filter=""><i class="iconfont1">&#xe6ec; </i>拨号2</a>
					</div>
			    </div>	
			
                <fieldset class="layui-elem-field layui-field-title">
				  <legend>商品信息</legend>
				</fieldset>
				
				<div class="layui-form-item">
					<div class="layui-inline">
					  <label class="layui-form-label">是否修改价格</label>
						<div class="layui-input-inline">
							<select name="modify_price" id="modify_price_id" lay-verify="required">
							  <option value="N">否</option>
							  <option value="Y">是</option>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>应付金额：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="cope_money_id" 
							autocomplete="off" value="<?php echo $arrData['cope_money']; ?>" class="layui-input">
						</div>
					</div>
				</div>
				
				<table class="layui-table" lay-data="{id: 'idTest', url:'/index.php/crm/Serviceorder/orderGoods?id=<?php echo $arrData['id']; ?>'}" lay-filter="demo">
				  <thead>
					<tr>
						<th lay-data="{checkbox:true, LAY_CHECKED: true}"></th>
						<th lay-data="{field:'id', align:'center', width:60 }">编号</th>
						<th lay-data="{field:'good_name', align:'center', width:160 }">商品名称</th>
						<th lay-data="{field:'good_num', width:100,sort: true}">商品货号</th>
						<th lay-data="{field:'price', width:100,sort: true}">商品价格</th>
						<th lay-data="{field:'cat_name', width:100 }">商品分类</th>
						<th lay-data="{field:'goods_num', width:100 }">商品数量</th>
						<th lay-data="{field:'goods_money', width:100 }">商品总价格</th>
						<th lay-data="{field:'simple_description', width:200}">描述</th>
						<!--<th lay-data="{fixed: 'right', width:100, align:'center', toolbar: '#barDemo'}">操作</th>-->
					 </tr>
				  </thead>
				</table>
				 
				<script type="text/html" id="barDemo">
				  <a class="layui-btn layui-btn-mini" lay-event="delete">清除商品</a>
				</script>
            </form>
			<fieldset class="layui-elem-field layui-field-title">
				  <legend>订单跟踪信息</legend>
			</fieldset>
			<table class="layui-table" lay-data="{id: 'idAction', url:'/index.php/crm/Serviceorder/orderAction?id=<?php echo $arrData['id']; ?>'}" lay-filter="demo">
			  <thead>
				<tr>
					<th lay-data="{field:'action_user', align:'center', width:100 }">操作者</th>
					<th lay-data="{field:'action_time', align:'center', width:160 }">操作时间</th>
					<th lay-data="{field:'order_status', width:100}">订单状态</th>
					<th lay-data="{field:'pay_status', width:100}">支付状态</th>
					<th lay-data="{field:'shipping_status', width:100 }">发货状态</th>
					<th lay-data="{field:'action_description', width:180 }">描述</th>
					<!--<th lay-data="{fixed: 'right', width:100, align:'center', toolbar: '#barDemo'}">操作</th>-->
				 </tr>
			  </thead>
			</table>
        </div>
    </body>
	<script type="text/javascript" src="/public/static/crm/js/serviceOrder/editOrder.js"></script>
	<script type="text/javascript">
	$(function(){
		$("#modify_price_id").val("<?php echo $arrData['modify_price']; ?>");
	})
	</script>
</html>